package com.yifeng.repo.base.api;

import lombok.AllArgsConstructor;
import lombok.Data;

import java.util.List;

/**
 * Created by daibing on 2020/2/27.
 */
@Data
@AllArgsConstructor
public class OffsetResult<E> {
    private String offsetPosition;
    private int offsetSize;
    private List<E> result;

    public OffsetResult() {
        this("0", 10);
    }

    public OffsetResult(String offsetPosition, int offsetSize) {
        this.offsetPosition = offsetPosition;
        this.offsetSize = offsetSize;
    }
}
